<div class="pager" th:unless="${#lists.isEmpty(products)}">
    <span class="heading"><span th:text="#{productPagingOptions.page}">Page:</span></span>
    <ul>
        <li th:each="num : ${#numbers.sequence(1, result.totalPages)}">
            <a blc:paginationpagelink="${num}" th:text="${num}" th:class="${result.page == num}? 'active'"></a>
        </li>
    </ul>
</div>
